<?php
declare (strict_types = 1);

namespace app\controller;

use app\BaseController;
use app\model\Config;
use think\Request;

class ConfigController extends BaseController
{
	/**
	 * 用户协议
	 * @return void
	 */
	function getUserAgreement()
	{
		$row = Config::getFieldByName('user_agreement','value');
		$this->writeJson($row);
    }
	
	/**
	 * 隐私政策
	 * @return void
	 */
	function getPrivacyPolicy()
	{
		$row = Config::getFieldByName('privacy_policy','value');
		$this->writeJson($row);
	}
	
	/**
	 * 关于我们
	 * @return void
	 */
	function getAboutUs()
	{
		$row = Config::getFieldByName('about_us','value');
		$this->writeJson($row);
	}
	
	
}
